package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 促销活动子订单表(ActivityChildOrder)实体类
 *
 * @author jsm
 * @since 2023-03-26 17:23:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_activity_child_order")
public class ActivityChildOrder implements Serializable {
    private static final long serialVersionUID = 230101916151286064L;
    /**
     * id;自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 开团活动用户id
     */
    @TableField(value = "uid")
    private Integer uid;

    /**
     * 主订单id
     */
    @TableField(value = "oid")
    private Integer oid;

    /**
     * 促销活动商品id
     */
    @TableField(value = "agid")
    private Integer agid;

    /**
     * 订单拼团价格
     */
    @TableField(value = "price")
    private Double price;

    /**
     * 订单状态;0新订单（默认）/待成团/已付款/已成团/已取消
     */
    @TableField(value = "flag")
    private Integer flag;

    /**创建时间*/
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
